<?php echo $this->Html->css('plugins/colorBox/colorbox'); ?>

<!-- BEGIN PAGE HEADING ROW -->
<div class="row">
	<div class="col-lg-12">
		<!-- BEGIN BREADCRUMB -->
		<div class="breadcrumbs">
			<ul class="breadcrumb">
				<li> <a href="/admin">Trang chủ</a> </li>
				<li> <a href="/admin/products/index/<?php echo $category_id?>">Danh sách sản phẩm</a> </li>
				<li class="active">Xem hình ảnh</li>
			</ul>
		</div>
		<!-- END BREADCRUMB -->

		<div class="page-header">
			<h1>Hình ảnh <small><?php echo $product['name']?></small></h1>
		</div>

		<?php echo $this->element('layout/layout-options')?>

	</div><!-- /.col-lg-12 -->
</div><!-- /.row -->
<!-- END PAGE HEADING ROW -->


<div class="row">
	<div class="col-lg-12">

		<?php if($images):?>
		<ul class="tc-gallery clearfix"  data-pid="<?php echo $product['id']?>">
			<?php foreach($images as $img):?>
			<li id="<?php echo $img['Image']['id']; ?>">
				<a href="<?php echo PUBLIC_DETAIL_SHOW. $img['Image']['image'] ?>" data-rel="colorbox">
					<img alt="" src="<?php echo PUBLIC_THUMB_SHOW. $img['Image']['image'] ?>" style="width:160px; height: 120px;">
				</a>

				<div class="tools tools-bottom">
					<a href="#">
						<i class="fa fa-times text-red"></i>
					</a>
				</div>
			</li>
			<?php endforeach;?>
		</ul>
		<?php else: ?>
		<div class="note note-warning">Chưa có hình ảnh</div>
		<?php endif;?>


	</div><!-- /.col-lg-12 -->
</div><!-- /.row -->



<?php
	echo $this->Html->script('plugins/bootbox/bootbox.min');
	echo $this->Html->script('functions');
	echo $this->Html->script('plugins/colorBox/jquery.colorbox-min');
	echo $this->Html->script('product/view-image');
?>

